using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using RaidLog.Engine;

namespace RaidLog.WebClient
{
    public partial class CreateRaid : Form
    {
        //WowDatabase _WowDatabase = null;
        ImportData.ImportDataSrv _Server = null;

        public CreateRaid(ImportData.ImportDataSrv server)
        {
            _Server = server;
            //_WowDatabase = wowDatabase;
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
        }

        private void Main_FormClosing(object sender, FormClosingEventArgs e)
        {
        }

        private void buttonParse_Click(object sender, EventArgs e)
        {
            _Server.CreateRaid(dateTimePickerFrom.Value, dateTimePickerTo.Value, textBoxInstance.Text);
            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}